package com.example.sale.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.sale.True.Product;
import com.example.sale.True.ProductDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ProductDetailMapper extends BaseMapper<ProductDetail> {
    @Select("SELECT * FROM productlistdetail WHERE name = #{name} and userid=#{userid}")
    ProductDetail findExist(@Param("name") String name  ,@Param("userid") Integer userid);
}
